package com.lrkj.waitress.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 投诉建议对象 tz_repairs
 *
 * @author yajun_ren
 * @date 2021-07-22
 */
public class Repairs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 单元id */
    @Excel(name = "单元id")
    private String unitId;

    /** 房屋id */
    @Excel(name = "房屋id")
    private String roomId;

    /** 所属物业 */
    @Excel(name = "所属物业")
    private String deptId;

    /** 投诉类型 */
    @Excel(name = "投诉类型")
    private String repairsType;

    /** 投诉人 */
    @Excel(name = "投诉人")
    private String repairsPerson;

    /** 投诉电话 */
    @Excel(name = "投诉电话")
    private String repairsPhone;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    private String repairsContent;

    /** 投诉状态 */
    @Excel(name = "投诉状态")
    private String repairsState;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createDate;

    /** 更新时间 */
    private Date updateDate;

    /** 投诉单号 */
    @Excel(name = "投诉单号")
    private String repairsOdd;

    /** 投诉照片 */
    @Excel(name = "投诉照片")
    private String repairsImgs;

    /** 处理结果 */
    @Excel(name = "处理结果")
    private String results;

    /** 处理图片 */
    @Excel(name = "处理图片")
    private String resultsImgs;

    private String unitName;

    private String roomName;

    private String deptName;

    /** 处理人 */
    @Excel(name = "处理人")
    private String resultsPerson;

    /**
     * 是否已申请报修(1-已申请 2-未申请)
     */
    private Integer hasApplyRepair;

    //业主名称
    private String ownerName;

    /** 祖级ID */
    private String ancestors;

    private String serviceType;

    /** 小区ID */
    @Excel(name = "小区ID")
    private String communityId;

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getResultsPerson() {
        return resultsPerson;
    }

    public void setResultsPerson(String resultsPerson) {
        this.resultsPerson = resultsPerson;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setUnitId(String unitId)
    {
        this.unitId = unitId;
    }

    public String getUnitId()
    {
        return unitId;
    }
    public void setRoomId(String roomId)
    {
        this.roomId = roomId;
    }

    public String getRoomId()
    {
        return roomId;
    }
    public void setRepairsType(String repairsType)
    {
        this.repairsType = repairsType;
    }

    public String getRepairsType()
    {
        return repairsType;
    }
    public void setRepairsPerson(String repairsPerson)
    {
        this.repairsPerson = repairsPerson;
    }

    public String getRepairsPerson()
    {
        return repairsPerson;
    }
    public void setRepairsPhone(String repairsPhone)
    {
        this.repairsPhone = repairsPhone;
    }

    public String getRepairsPhone()
    {
        return repairsPhone;
    }
    public void setRepairsContent(String repairsContent)
    {
        this.repairsContent = repairsContent;
    }

    public String getRepairsContent()
    {
        return repairsContent;
    }
    public void setRepairsState(String repairsState)
    {
        this.repairsState = repairsState;
    }

    public String getRepairsState()
    {
        return repairsState;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setRepairsOdd(String repairsOdd)
    {
        this.repairsOdd = repairsOdd;
    }

    public String getRepairsOdd()
    {
        return repairsOdd;
    }
    public void setRepairsImgs(String repairsImgs)
    {
        this.repairsImgs = repairsImgs;
    }

    public String getRepairsImgs()
    {
        return repairsImgs;
    }
    public void setResults(String results)
    {
        this.results = results;
    }

    public String getResults()
    {
        return results;
    }
    public void setResultsImgs(String resultsImgs)
    {
        this.resultsImgs = resultsImgs;
    }

    public String getResultsImgs()
    {
        return resultsImgs;
    }

    public Integer getHasApplyRepair() {
        return hasApplyRepair;
    }

    public void setHasApplyRepair(Integer hasApplyRepair) {
        this.hasApplyRepair = hasApplyRepair;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitId", getUnitId())
            .append("roomId", getRoomId())
            .append("repairsType", getRepairsType())
            .append("repairsPerson", getRepairsPerson())
            .append("repairsPhone", getRepairsPhone())
            .append("repairsContent", getRepairsContent())
            .append("repairsState", getRepairsState())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("repairsOdd", getRepairsOdd())
            .append("repairsImgs", getRepairsImgs())
            .append("results", getResults())
            .append("resultsImgs", getResultsImgs())
            .append("hasApplyRepair", getHasApplyRepair())
            .append("serviceType", getServiceType())
            .toString();
    }
}
